package com.lingz.manager.modules.wuxue.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lingz.manager.modules.wuxue.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Classname Yikeman_info
 * @Description TODO
 * @Date 2023/11/24 15:50
 * @Created by mjh
 */
@Data
@Entity
@Table(name = "w_yikeman_data")
@TableName("w_yikeman_data")
@ApiModel(value = "依科曼性诱数据")
public class YikemanData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据id")
    private String dataId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date endDate;

    @ApiModelProperty(value = "位置")
    private String locationName;

    @ApiModelProperty(value = "害虫id")
    private String pestTypeId;

    @ApiModelProperty(value = "害虫数量")
    private Long pestNum;

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    @ApiModelProperty(value = "地址")
    private String definiteAddress;

    @ApiModelProperty(value = "害虫名称")
    private String cnName;

    @ApiModelProperty(value = "温度")
    private Double temperature;

    @ApiModelProperty(value = "湿度")
    private Double humidity;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发送时间")
    private Date sendMsmDate;

    @ApiModelProperty(value = "设备号")
    private String modelSerail;

}
